/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/7/23.
///
/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/9/25.
///
/// gongzhonghao biglead
/// https://study.163.com/instructor/1021406098.htm
/// https://blog.csdn.net/zl18603543572
/// https://www.toutiao.com/c/user/token/MS4wLjABAAAAYMrKikomuQJ4d-cPaeBqtAK2cQY697Pv9xIyyDhtwIM/

class MineBeanDepartmentBean {
  int mineId;
  String department;

  MineBeanDepartmentBean({this.mineId, this.department});

  MineBeanDepartmentBean.fromJson(Map<String, dynamic> map) {
    this.mineId = map["mineId"];
    this.department = map["department"];
  }
}

class MineBean {
  int id;
  String name;
  String createTime;
  String nickName;
  String logoUrl;

  ///成绩考核统计 cl 关闭 op 开启
  String scoreStatistics;
  String integralExchange;

  /// jituan 集团
  /// mine 煤炭企业
  /// noMine 非煤企业
  String mineTag = 'mine';

  MineBean.fromJson(Map<String, dynamic> map) {
    this.id = map["id"];
    this.name = map["name"];
    this.nickName = map["nickName"];
    this.logoUrl = map["logoUrl"];
    this.createTime = map["createTime"];
    this.mineTag = map["mineTag"] ?? 'mine';

    this.scoreStatistics = map["scoreStatistics"] ?? 'cl';
    this.integralExchange = map["integralExchange"] ?? 'cl';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> map = new Map<String, dynamic>();
    map["id"] = this.id;
    map["name"] = this.name;
    map["nickName"] = this.nickName;
    map["logoUrl"] = this.logoUrl;

    map["createTime"] = this.createTime;

    return map;
  }
}
